<% content_for(:title, Spree.t(:login)) %>

<h1 class="mb-3 font-weight-light">Welcome back</h1>
<%= form_for resource, as: resource_name, url: session_path(resource_name), data: { controller: 'enable-button', turbo: false } do |f| %>
  <div class="form-group mb-3">
    <%= f.label :email, Spree.t(:email), required: true, class: 'form-label' %>
    <%= f.email_field :email, required: true, class: 'form-control form-control-lg rounded-sm', placeholder: 'steve@getvendo.com', data: { enable_button_target: :input }, autocomplete: :email, autofocus: true %>
  </div>
  <div class="form-group mb-3">
    <%= f.label :password, Spree.t(:password), required: true, class: 'form-label' %>
    <%= f.password_field :password, required: true, class: 'form-control form-control-lg rounded-sm', placeholder: '********', autocomplete: 'current-password' %>
  </div>
  <%= render 'spree/admin/shared/devise/links', f: f %>
  <%= turbo_save_button_tag Spree.t(:login), class: 'btn btn-primary btn-lg w-100' %>
<% end %>

